'use strict';

angular.module('voteWithAuthApp')
  .config(function ($stateProvider) {
    $stateProvider
      .state('main', {
        url: '/',
        templateUrl: 'app/main/main.html',
        controller: 'MainCtrl'
      })
      .state('vote-main', {
        url: '/meeting/{meetingId}/vote',
        templateUrl: 'app/main/vote.html',
        controller: 'MainVoteCtrl'
      })
      .state('dashboard', {
        url: '/meeting/dashboard',
        templateUrl: 'app/main/dashboard.html',
        controller: 'MainDashCtrl'
      })
      .state('dashboard-detail', {
        url: '/meeting/{meetingId}/dashboard',
        templateUrl: 'app/main/dashboard-detail.html',
        controller: 'MainDashDetailCtrl'
      })
      .state('dashboard-detail-v2', {
        url: '/meeting/{meetingId}/dashboard/v2',
        templateUrl: 'app/main/dash-detail-v2.html',
        controller: 'MainDashDetailCtrl'
      })
      .state('dashboard-detail-v3', {
        url: '/meeting/{meetingId}/dashboard/v3',
        templateUrl: 'app/main/dash-detail-v3.html',
        controller: 'MainDashDetail2Ctrl'
      })
      .state('dashboard-detail-v4', {
        url: '/meeting/{meetingId}/dashboard/v4',
        templateUrl: 'app/main/dash-detail-v4.html',
        controller: 'MainDashDetail2Ctrl'
      })
      .state('dashboard-detail-v5', {
        url: '/meeting/{meetingId}/dashboard/v5',
        templateUrl: 'app/main/dash-detail-v5.html',
        controller: 'MainDashDetail2Ctrl'
      });
  });
